<?php
namespace php\widgets\editorxml;
use yii\helpers\Html;
class WebEditorWidget extends WebWidget{
	public function run(){
		if(empty($this->value['value'])) return null;

		$options = $this->options;      
		$shtml = Html::beginTag('div', $options);
		$shtml .= \common\utils\Helper::showContent($this->value['value']['content']);
		$shtml .= Html::endTag('div');
		return $shtml;
	}
}